package com.wbs.api;

import com.wbs.model.TbSeller;
import com.wbs.resutil.PageBean;
import com.wbs.resutil.Result;
import com.wbs.vo.GoodsVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: 芝梦
 * @Description:
 * @DateTime: 2024/1/26 20:07
 */
@FeignClient(name = "dongdong-seller-service",contextId = "1")
public interface SellerApi {
    @GetMapping("/seller/selectSellerBySellerId")
    public TbSeller selectSellerBySellerId(@RequestParam String sellerId);

    @PostMapping("/goodds/findByConditionPage")
    public Result findByConditionPage(@RequestHeader(required = false) String token, @RequestBody PageBean<GoodsVO> pageBean);

    @PutMapping("/goodds/approvalOrReject")
    public Result approvalOrReject(@RequestParam Long id, @RequestParam String auditStatus);
    }
